<?php 
	ini_set("include_path", ".:../:./includes:../includes");

	require_once("includes/constants.php");
	require_once("includes/common.php");
	require_once("includes/template.php");

	head("Reassign Task");
	 
	$task = $_SESSION[TASKS][$_REQUEST['selectedTask']];
	 
?>

<div id="verification">
	You may reassign the task to a different employee and to a different time. Work done so far can be substracted from the hours. 
</div>
<input id="orig_hours_of_work" name="orig_hours_of_work" type="hidden" value="<?php echo  $task['t_hours_of_work']; ?>"/>
<input id="orig_employee_id" name="orig_employee_id" type="hidden" value="<?php  echo $task['t_employee_id']; ?>"/>
<input id="orig_date_assigned" name="orig_date_assigned" type="hidden" value="<?php  echo $task['t_date_assigned']; ?>"/>					
			 
<table cellspacing="5px"  width="100%">
	<tr>
		<td align="right">
			<label for="o_order_id">Order ID</label>	
		</td>
		<td>
			<input    id="o_order_id" name="o_order_id" type="text" 
			value="<?php echo $task['o_order_id']; ?>"
			 readonly="readonly" />					
		</td>
	</tr>
	<tr>
		<td align="right">
			<label for="o_due_date">Order Due</label>			
		</td>
		<td>
			<input    id="o_due_date" name="o_due_date" type="text" 
			value="<?php  echo $task['o_due_date']; ?>"
			 readonly="readonly" />	 	
		</td>
	</tr>
	<tr>
		<td align="right">
			<label for="oi_item_id">Item/Task ID</label>			
		</td>
		<td>
			<input id="oi_item_id" name="oi_item_id" type="text" 
			value="<?php  echo $task['oi_item_id']; ?>"
			 readonly="readonly" />	
		</td>
	</tr>
	<tr>
		<td align="right">
			<label for="t_date_assigned">Date Assigned</label>		
		</td>
		<td>
			<input    id="t_date_assigned" name="t_date_assigned" type="text" 
			value="<?php  echo $task['t_date_assigned']; ?>" />						
		</td>
	</tr>
	<tr>
		<td align="right">
			<label for="t_employee_id">Employee ID</label>	
		</td>
		<td>
			<input    id="t_employee_id" name="t_employee_id" type="text" 
			value="<?php  echo $task['t_employee_id']; ?>" />									
		</td>
	</tr>
	
	<tr>
		<td align="right">
			<label for="t_hours_of_work">Hours</label>	
		</td>
		<td>
			<input    id="t_hours_of_work" name="t_hours_of_work" type="text" 
			value="<?php echo  $task['t_hours_of_work']; ?>" />											
		</td>
	</tr>
	
				
</table>


	 	
<?php 
	foot("REASSIGN", "reassignTaskLogic.php?selectedTask=". $task['oi_item_id']); 
?>


